screen_reader_speak
This function speaks some text using a screen reader.
bool screen_reader_speak(int reader, string text)
Parameters:
reader
A value representing one of the four supported screen readers (see remarks).
text
The text that is to be spoken.
Return value:
true on success, false on failure.
Remarks:
This function supports four available screen readers, each of which are identified by a number, as follows:
Please note that this function does not print anything on screen, merely uses an internal API provided by the screen reader in order to speak the text.
Please note that the screen reader must be running and all dependencies correctly installed in order for this function to work correctly. If these steps are not met, the function will return false and no text will be spoken. See Appendix F for information about dependencies.
Example:
// Get Jaws to speak some text.
void main()
{
screen_reader_speak(JAWS, "Hi. Bet ya didn't know I could say things on my own without a screen, did you?");
}